angular.module('routeApp')
  .controller('RouteListCtl',function($scope) {
    $scope.nav = {
      resources: [
       {
        name: '路由列表',
        enName: 'routelist',
        icon: 'question-sign',
        link: '/#/list',
        service: ''
       },
      ],
      others: [
       {
        name: '路由详细',
        enName: 'routedetail',
        icon: 'question-sign',
        link: '/#/list/1',
        service: ''
       },
      ]
    };
  })

angular.module('routeApp')
  .controller('RouteDetailCtl',function($scope, /*$http*/Todo, $routeParams) {
    $scope.id = $routeParams.id;
    //$http.get('/todo/api/v1.0/tasks').then(function(r) {
    //  $scope.todos = r.data.tasks;
    var todo = Todo.get(function() {
      $scope.todos = todo.tasks
    })
  })

